jQuery(function($) {
	var swiper = new Swiper('.cc', {
		pagination: '.swiper-pagination',
		paginationClickable: true
		//    autoplay: 1000
	});

	var liH = $('#ul').children().eq(0).height()
	var ulH = $('#ul').height()

	var ulT = $('#ul').position().top

	var count = 0;

	var id = setInterval(function() {

		count -= liH;
		$("#ul").animate({
			top: count + "px"
		}, 500, function() {
			if(ul.style.top == -(ulH - liH) + 'px') {

				count = 0;
				$("#ul").css("top", "0px");

			}
		})

	}, 2000)
	
	
	var swiper1 = new Swiper('.mr', {

        slidesPerView: 1.7,
        paginationClickable: true,
        spaceBetween: 20,
        freeMode: true
    });

   $.ajax({
		type:'GET',
		url:'json/index.json',
		dataType:'json',
		success:function(data){
			var str=template("mban",{arr:data});
			$(".sj").html(str);
		
		}
	});
	$('.sps2').click(function(){
		location.href='../html/index1.html'
	})
});

